package com.youlai.boot.system.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 字典项实体对象
 *
 * @author stakcn
 * @since 2022/12/17
 */
@Getter
@Setter
@Table(value = "sys_dict_item")
public class SysDictItemEntity {

    /**
     * 主键ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 字典编码
     */
    @Column(value = "dict_code")
    private String dictCode;

    /**
     * 字典项名称
     */
    @Column(value = "label")
    private String label;

    /**
     * 字典项值
     */
    @Column(value = "value")
    private String value;

    /**
     * 排序
     */
    @Column(value = "sort")
    private Integer sort;

    /**
     * 状态（1-正常，0-禁用）
     */
    @Column(value = "status")
    private Integer status;

    /**
     * 备注
     */
    @Column(value = "remark")
    private String remark;

    /**
     * 标签类型
     */
    @Column(value = "tag_type")
    private String tagType;

    /**
     * 创建时间
     */
    @Column(value = "create_time", onInsertValue = "now()")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(value = "update_time", onInsertValue = "now()", onUpdateValue = "now()")
    private Date updateTime;

}